/*
 * CS_DAILY_REWARD.cpp
 *
 *  Created on: 2013. 7. 25.
 *      Author: the2
 */

#include "../../Command.h"
#include "../../User.h"


namespace ProjectZ { namespace NCommand {


void Command::CS_DAILY_REWARD( User * pUser, ::Network::Packet *pPacket )
{
	PREPARE_PACKET;
	DEBUGLOG("%s GID=%d", __FUNCTION__, pUser->GetUserSeq());

	u8	u8reward_exists = 0;		//보상여부 (0 : 이미 보상 받음, 1 : 보상 있음)
	u8	u8reward_value_type = 0;	//보상 유형 (0 : 골드, 1 : 젠)
	u32	u32reward_value = 0;		//보상값 (골드 또는 젠)

	::Network::Packet * pAck = ::Network::GETPACKETPOOL()->SEND_NEW();

	pAck->MsgCat("%2d", ACK_OK);

	* pAck << u8reward_exists << u8reward_value_type << u32reward_value;

	pAck->MakePacket(CMD_SC_DAILY_REWARD);

	pUser->Send(pAck);
}


} /*NCommand*/ } /*ProjectZ*/

